import { NgModule, Component } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { AccessstoreListComponent } from "./accessstore-list/accessstore-list.component";
import { ManysendreciveListComponent } from "./manysendrecive-list/manysendrecive-list.component"
import { BatchreservedListComponent } from './batchreserved-list/batchreserved-list.component';
import { SafemanageListComponent } from './safemanage-list/safemanage-list.component';
import { ReturnwarehouseManageComponent } from './returnwarehouse-manage/returnwarehouse-manage.component';
import { EffectiveManageComponent } from './effective-manage/effective-manage.component';
import { WarehousehasManageComponent } from './warehousehas-manage/warehousehas-manage.component';
import { WarehousereconcManageComponent } from './warehousereconc-manage/warehousereconc-manage.component';
import { ProductremainingManageComponent } from './productremaining-manage/productremaining-manage.component';
import { WarehousegoinManageComponent } from './warehousegoin-manage/warehousegoin-manage.component';
import { WarehousesendreciveManageComponent } from './warehousesendrecive-manage/warehousesendrecive-manage.component';
import { ProductnosendManageComponent } from './productnosend-manage/productnosend-manage.component';
import { PurchaseManageComponent } from './purchase-manage/purchase-manage.component';
import { ReturnproductManageComponent } from './returnproduct-manage/returnproduct-manage.component';
import { ApplyWareComponent } from './apply-ware/apply-ware.component';
import { MovewareApplyComponent } from './moveware-apply/moveware-apply.component';
import { MovewareOutwareComponent } from './moveware-outware/moveware-outware.component';
import { ApplyWareWarehousingComponent } from './apply-ware/apply-ware-warehousing/apply-ware-warehousing.component';
import { ApplyWareOutofstockComponent } from './apply-ware/apply-ware-outofstock/apply-ware-outofstock.component';
import { ApplyWareOutofstockDetailComponent } from './apply-ware/apply-ware-outofstock-detail/apply-ware-outofstock-detail.component';
import { ApplyWareWarehousingDetailComponent } from './apply-ware/apply-ware-warehousing-detail/apply-ware-warehousing-detail.component';
import { ExamineApproveWareComponent } from './examine-approve-ware/examine-approve-ware.component';
import { ApprovalInComponent } from './examine-approve-ware/approval-in/approval-in.component';
import { ApprovalOutComponent } from './examine-approve-ware/approval-out/approval-out.component'
import { AdminInOutComponent } from './admin-in-out/admin-in-out.component';
import { AdminInComponent } from './admin-in-out/admin-in/admin-in.component';
import { AdminOutComponent } from './admin-in-out/admin-out/admin-out.component';
import { BoxingManageComponent} from './boxing-manage/boxing-manage.component'
import { BoxconfirmManageComponent} from './boxconfirm-manage/boxconfirm-manage.component'
import { WarehouseInventoryComponent} from './warehouse-inventory/warehouse-inventory.component'
import { WarehouseInventoryApprovalComponent} from './warehouse-inventory-approval/warehouse-inventory-approval.component'
const routes: Routes = [
    {
        path: "purchase",
        data: {
            uid : 321,
            title: "采购入库管理",
            isLastLevel : true,
            useCache : true
        },
        component: PurchaseManageComponent
    },
    {
        path: "returnproduct",
        data: {
            uid : 322,
            title: "采购退换货",
            isLastLevel : true,
            useCache : true
        },
        component: ReturnproductManageComponent
    },
    {
        path: "accessstore",
        data: {
            uid : 323,
            title: "出入库管理",
            isLastLevel : true,
            useCache : true
        },
        component: AccessstoreListComponent
    },
    {
        path: "manysendrecive",
        data: {
            uid : 324,
            title: "多发/收调整",
            isLastLevel : true,
            useCache : true
        },
        component: ManysendreciveListComponent
    },
    {
        path: "moveWareApply",
        data: {
            uid : 325,
            title: "移库入库管理",
            isLastLevel : true,
            useCache : true
        },
        component: MovewareApplyComponent
    },
    {
        path: "moveWareOut",
        data: {
            uid : 326,
            title: "移库出库管理",
            isLastLevel : true,
            useCache : true
        },
        component: MovewareOutwareComponent
    },
    {
        path: "applyware",
        data: {
            uid : 327,
            title: "申请出入库管理",
            isLastLevel : true,
            useCache : true
        },
        component: ApplyWareComponent
    },
    {
        // path: "applywarewarehousing/:id",
        path: "applywarewarehousing",
        data: {
            title: "申请入库",
        },
        component: ApplyWareWarehousingComponent
    },
    {
        path: "applywarewarehousing/:id",
        data: {
            title: "申请入库修改"
        },
        component: ApplyWareWarehousingComponent
    },
    {
        path: "applywareoutofstock",
        data: {
            title: "申请出库"
        },
        component: ApplyWareOutofstockComponent
    },
    {
        path: "applywareoutofstock/:id",
        data: {
            title: "申请出库修改"
        },
        component: ApplyWareOutofstockComponent
    },
    {
        path: "applywareoutofstockdetail/:id",
        data: {
            title: "申请出库详情"
        },
        component: ApplyWareOutofstockDetailComponent
    },
    {
        path: "applywarewarehousingdetail/:id",
        data: {
            title: "申请入库详情"
        },
        component: ApplyWareWarehousingDetailComponent
    },
    {
        path: "batchreserved",
        data: {
            uid:328,
            title: "库房批次预留",
            isLastLevel : true,
            useCache : true
        },
        component: BatchreservedListComponent
    },
    {
        path: "sagemanage",
        data: {
            uid:329,
            title: "库房安全库存管理",
            isLastLevel : true,
            useCache : true
        },
        component: SafemanageListComponent
    },
    {
        path: "returnwarehouse",
        data: {
            uid:330,
            title: "返工库管理",
            isLastLevel : true,
            useCache : true
        },
        component: ReturnwarehouseManageComponent
    },
    {
        path: "effective",
        data: {
            uid:331,
            title: "有效期管理",
            isLastLevel:true,
            useCache:true
        },
        component: EffectiveManageComponent
    },
    {
        path: "warehousehas",
        data: {
            uid:332,
            title: "库存现有量查询",
            isLastLevel:true,
            useCache:true
        },
        component: WarehousehasManageComponent
    },
    {
        path: "warehousehasreconc",
        data: {
            uid:333,
            title: "库房对账",
            isLastLevel:true,
            useCache:true
        },
        component: WarehousereconcManageComponent
    },
    {
        path: "productremaining",
        data: {
            uid:334,
            title: "产品净库存查询",
            isLastLevel:true,
            useCache:true
        },
        component: ProductremainingManageComponent
    },
    {
        path: "warehousegoin",
        data: {
            uid:335,
            title: "库存出入库查询",
            isLastLevel:true,
            useCache:true
        },
        component: WarehousegoinManageComponent
    },
    {
        path: "warehousesendrecive",
        data: {
            uid:336,
            title: "库存收发存查询",
            isLastLevel:true,
            useCache:true
        },
        component: WarehousesendreciveManageComponent
    },
    {
        path: "productnosend",
        data: {
            uid:337,
            title: "未发货产品查询",
            isLastLevel:true,
            useCache:true
        },
        component: ProductnosendManageComponent
    },
    {
        path: "examineapproveware",
        data: {
            uid:338,
            title: "审批出入库管理",
            isLastLevel:true,
            useCache:true
        },
        component: ExamineApproveWareComponent
    },
    {
        path: "approvalin/:id",
        data: {
            title: "审批入库管理"
        },
        component: ApprovalInComponent
    },
    {
        path: "approvalout/:id",
        data: {
            title: "审批出库管理"
        },
        component: ApprovalOutComponent
    },
    {
        path: "admininout",
        data: {
            uid:339,
            title: "管理员出入库",
            isLastLevel:true,
            useCache:true
        },
        component: AdminInOutComponent
    },
    {
        path: "adminout/:id",
        data: {
            title: "管理员入库"
        },
        component:  AdminOutComponent
    },
    {
        path: "adminin/:id",
        data: {
            title: "管理员出库"
        },
        component:AdminInComponent
    },
    {
        path: "boxing",
        data: {
			uid: 340,
            title: "销售装箱出库",
            isLastLevel:true,
            useCache:true
        },
        component: BoxingManageComponent
    },
    {
        path: "boxconfirm",
        data: {
			uid: 341,
            title: "销售装箱确认",
            isLastLevel:true,
            useCache:true
        },
        component: BoxconfirmManageComponent
    },
    {
        path: "warehouseinventory",
        data: {
			uid: 342,
            title: "库房盘点",
            isLastLevel:true,
            useCache:true
        },
        component: WarehouseInventoryComponent
    },
    {
        path: "warehouseinventoryapproval",
        data: {
			uid: 343,
            title: "库房盘点审批",
            isLastLevel:true,
            useCache:true
        },
        component: WarehouseInventoryApprovalComponent
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class WarehouseManageRoutingModule { }
